Component({
  mixins: [],
  data: {
    width: '',
    height: '',
    state:'widthFix'
  },
  props: {
    params: {
      category:""
    },
    ruter: "",
    itemData:{},
    category:''
  },
  didMount() {
  },
  didUpdate() {
  },
  didUnmount() {},
  methods: {
    navGetTo(){
      my.navigateTo({
        url: this.props.ruter,
        success: () => {
          
        },
        fail: () => {
          
        },
        complete: () => {
          
        }
      });

    
    },
      imgLoad(e) {
        if(e.detail.height >1000){
          this.setData({
            state:'aspectFit'
          })
        } 
      }
  },
});
